package com.xinke.juc.case02;

import lombok.extern.slf4j.Slf4j;

/**
 * @Author：xinke
 * @Date：2025/9/30
 * @Desc: 演示多个线程并发交替执行
 */
@Slf4j
public class TestMultiTread {
    public static void main(String[] args) {
        new Thread(()->{
            while (true){
                log.info("t1 running...");
            }
        },"t1").start();

        new Thread(()->{
            while (true){
                log.info("t2 running...");
            }
        },"t2").start();
    }
}
